<div class="tabs-wrapper">
    <form th:action="@{/admin/new}" class="form-horizontal" method="post">
        <div class="form-group">
            <label class="col-sm-2 control-label">账号名称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" name="name" value=""/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label"}>角色名称</label>
            <div class="col-sm-10" th:insert="widget::selectMultiple('roleId','请选择角色', ${roleList}, '')"></div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">账号密码</label>
            <div class="col-sm-10">
                <input type="password" name="password" class="form-control"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">确认密码</label>
            <div class="col-sm-10">
                <input type="password" name="confirmPassword" , class="form-control" value=""/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">真实姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" name="realName"/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-10 col-xs-4" th:insert="widget::checkbox('status','是否有效','status', 1)">

            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('.selectpicker').off().selectpicker('render');
    });
</script>